package com.yeban.javase.day06.test04_localtime;

import java.time.LocalDate;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/14
 *
 * 6.请问今天是今年的第多少天？
 */
public class test06 {

    public static void main(String[] args) {
        // 当天日期
        LocalDate localDate = LocalDate.now();

        int dayOfYear = localDate.getDayOfYear();
        System.out.println("今天是今年的第" + dayOfYear + "天");

    }
}
